package com.glacier.yuyuan.modules.front.web;

import com.glacier.yuyuan.common.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * date 2022-10-16 21:19
 * 登录
 *
 * @author glacier
 * @version 1.0
 */
@RequestMapping("${yuyuan.frontPath}")
@Controller
public class FrontIndexController extends BaseController {

	@GetMapping("")
	public String index() {
		return "front/index";
	}

	@GetMapping("login")
	public String login() {
		return "front/login";
	}

	@PostMapping("login")
	public String doLogin() {
		return "redirect:" + frontPath;
	}
}
